//
//  LFNetworkResult.m
//  AntMarket
//
//  Created by LF on 2017/3/20.
//  Copyright © 2017年 LF. All rights reserved.
//

#import "LFNetworkResult.h"
#import "AppDelegate.h"
@implementation LFNetworkResult
- (void) clarifyResultWithStatus1:(void(^)())success status0:(void(^)())failed otherCallBack:(void (^)(NSInteger))otherCallBack {
    if (self.status.integerValue == 1) {
        if (success) {
            success();
        }
    } else if (self.status.integerValue == 10) {
        if (self.isFromVM) {
            
        } else {
            [self pushToLoginVc];
        }
        if (otherCallBack) {
            otherCallBack(self.status.integerValue);
        }
    } else if (self.status.integerValue == 0){
        if (failed) {
            failed();
        }
    } else {
        if (otherCallBack) {
            otherCallBack(self.status.integerValue);
        }
    }
}

- (void) pushToLoginVc {
}


@end
